.class final Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;
.super Ljava/lang/Thread;
.source "BaseZMMobAgent.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuiapps/sdk/analytics/BaseZMMobAgent;->postDataByForce(Landroid/content/Context;Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$mContext:Landroid/content/Context;

.field final synthetic val$mHandler:Landroid/os/Handler;

.field final synthetic val$userId:Ljava/lang/String;


# direct methods
.method constructor <init>(Landroid/content/Context;Landroid/os/Handler;Ljava/lang/String;)V
    .registers 4

    .prologue
    .line 102
    iput-object p1, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$mContext:Landroid/content/Context;

    iput-object p2, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$mHandler:Landroid/os/Handler;

    iput-object p3, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$userId:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 7

    .prologue
    .line 107
    iget-object v2, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$mContext:Landroid/content/Context;

    invoke-static {v2}, Lcom/zuiapps/sdk/analytics/db/AnalyticsDBUtil;->getInstance(Landroid/content/Context;)Lcom/zuiapps/sdk/analytics/db/AnalyticsDBUtil;

    move-result-object v2

    invoke-virtual {v2}, Lcom/zuiapps/sdk/analytics/db/AnalyticsDBUtil;->queryList()Ljava/util/List;

    move-result-object v0

    .line 108
    .local v0, "analysisList":Ljava/util/List;, "Ljava/util/List<Lcom/zuiapps/sdk/analytics/greendao/AnalysisModel;>;"
    invoke-static {v0}, Lcom/zuiapps/sdk/analytics/parse/BaseAnalyticsParse;->getJsonStrs(Ljava/util/List;)Ljava/lang/String;

    move-result-object v1

    .line 109
    .local v1, "jsonStrs":Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_15

    .line 150
    :goto_14
    return-void

    .line 112
    :cond_15
    iget-object v2, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$mContext:Landroid/content/Context;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {v2, v4, v5}, Lcom/zuiapps/sdk/analytics/db/AnalyticsSettingDBUtil;->setLastPostDataTime(Landroid/content/Context;J)V

    .line 114
    iget-object v2, p0, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;->val$mHandler:Landroid/os/Handler;

    new-instance v3, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2$1;

    invoke-direct {v3, p0, v1, v0}, Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2$1;-><init>(Lcom/zuiapps/sdk/analytics/BaseZMMobAgent$2;Ljava/lang/String;Ljava/util/List;)V

    invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    goto :goto_14
.end method
